import {Directive} from '@angular/core';
import {NG_VALIDATORS} from '@angular/forms';
import {validateEmail} from '../validators/email.validator';

@Directive({
  selector: '[appValidateEmail]',
  providers: [
    {provide: NG_VALIDATORS, useValue: validateEmail, multi: true}
  ]
})
export class ValidateEmailDirective {

  constructor() {
  }

}
